home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / utils time / DCal 0.5 / dcal.exe / dcal / source / Makefile < prev   
Encoding:
Makefile  |  1999-11-11  |  2.3 KB  |  84 lines

  1. ## Makefile for DCal
  2.  
  3. ##    DCal, a Discordian calendar for the Palm OS.
  4. ##    Copyright (C) 1999 Ron Hale-Evans <rwhe@apocalypse.org>.
  5. ##
  6. ##    This program is free software; you can redistribute it and/or modify
  7. ##    it under the terms of the GNU General Public License as published by
  8. ##    the Free Software Foundation; the version used for this program
  9. ##    is Version 2.
  10. ##
  11. ##    This program is distributed in the hope that it will be useful,
  12. ##    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. ##    GNU General Public License for more details.
  15. ##
  16. ##    You should have received a copy of the GNU General Public License
  17. ##    along with this program; if not, write to the Free Software
  18. ##    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  19. ##
  20. ##    This program comes with ABSOLUTELY NO WARRANTY. Use it at your own risk.
  21. ##    For the text of the GNU General Public License, see the file gpl.txt,
  22. ##    which should have been distributed with this file.
  23.  
  24.  
  25. TARGET = dcal
  26. APPNAME = "DCal"
  27. APPID = "DCal"
  28.  
  29. OBJS = $(TARGET).o
  30. LIBS =
  31.  
  32. CC = m68k-palmos-coff-gcc
  33.  
  34. CFLAGS = -Wall -g -O2
  35.  
  36. PILRC = pilrc
  37. OBJRES = m68k-palmos-coff-obj-res
  38. NM = m68k-palmos-coff-nm
  39. BUILDPRC = build-prc
  40. PILOTXFER = pilot-xfer
  41.  
  42. all: $(TARGET).prc
  43.  
  44. .S.o:
  45.     $(CC) $(TARGETFLAGS) -c $<
  46.  
  47. .c.s:
  48.     $(CC) $(CSFLAGS) $<
  49.  
  50. $(TARGET).prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin.res
  51.     $(BUILDPRC) $(TARGET).prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  52.  
  53. code0000.$(TARGET).grc: $(TARGET)
  54.     $(OBJRES) $(TARGET)
  55.  
  56. code0001.$(TARGET).grc: code0000.$(TARGET).grc
  57.  
  58. data0000.$(TARGET).grc: code0000.$(TARGET).grc
  59.  
  60. pref0000.$(TARGET).grc: code0000.$(TARGET).grc
  61.  
  62. rloc0000.$(TARGET).grc: code0000.$(TARGET).grc
  63.  
  64. bin.res: $(TARGET).rcp $(TARGET).pbm
  65.     $(PILRC) $(TARGET).rcp .
  66.     touch bin.res
  67.  
  68. $(TARGET): $(OBJS)
  69.     $(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
  70.     ! $(NM) -u $(TARGET) | grep .
  71.  
  72. send: $(TARGET).prc
  73.     $(PILOTXFER) -i $(TARGET).prc
  74.  
  75. depend:
  76.     makedepend -Y -I. *.c
  77.  
  78. clean:
  79.     -rm -f *.[oa] $(TARGET) *.bin bin.res *.grc Makefile.bak
  80.  
  81. veryclean: clean
  82.     -rm -f $(TARGET).prc pilot.ram pilot.scratch
  83.  
  84.